package com.powervision.mvvmdemo.ui.repository

import com.powervision.http.base.BaseRepository
import com.powervision.http.entity.ApiResponse
import com.powervision.mvvmdemo.ui.http.RetrofitClient
import com.powervision.mvvmdemo.ui.model.CategoryModel

/**
 * @auth: njb
 * @date: 2021/12/21 10:34
 * @desc: 描述
 */
class FriendRepository :BaseRepository(){
    private val mFriendRepository by lazy {
        RetrofitClient.service
    }

    suspend fun friend():ApiResponse<List<CategoryModel>>{
        return  executeHttp {
            mFriendRepository.friend()
        }
    }
}